/**
 * tabbar map
 */
export const tabbar_route_map = {
  'index': '../index/index',
  'user_center': '../user_center/user_center',
  'device': '../device/device',
  'wash': '../wash/wash',
  'discover': '../discover/discover'
}

/**
 * 跳转tabbar
 */
export const linkToTabbar = (url) => {
  wx.redirectTo({
    url: url,
  })
}